<?php
	require_once('environment.php');

	if($acc->isLogged()) $temp->addSubMenu("Change Front Page", "changeHomePage.php");
	
	$temp->currentPage("Home");	
	$temp->showCal();
	$temp->generate();
	
	$sql = $db->Execute("SELECT * FROM `monster`.`frontPage` WHERE `AutoInc` = ? LIMIT 1", array(1));
	if($sql->RecordCount() < 1) {
		print "I'm sorry, but there seems to be a problem accessing our database.<br />\nPlease inform a website administrator about this problem.";
	}else {
		$row = $sql->FetchRow();
		print nl2br(stripslashes($row['Text']));
	}
?>